package com.gwd.task.repository;

import com.gwd.task.entity.ProjectNumEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import javax.validation.constraints.NotNull;
import java.util.List;
import java.util.Optional;

/**
 * @author zhiyongming
 * @date 2020/12/3 10:56
 */
@Repository
public interface ProjectNumRepository extends JpaRepository<ProjectNumEntity, Integer> {

    ProjectNumEntity findByProjectIdAndYear(Long projectId, String year);

    ProjectNumEntity findByProjectId(Long projectId);

    List<ProjectNumEntity> findByProjectIdIn(List<Long> ids);
}